<?php
$readLog = $this->ret['readlog'];
?>
 <h1 class="biaoti_a slw_c" id="biaoti_a1"><span>好友漫画分享</span><!--<a href="<?=self::_makeURL($this->app,$this->controller,$this->action)?>">更多&gt;&gt;</a>--></h1>
<ul class="h_menu_b">
   <li><a href="<?=self::_makeURL('index','index','index',array('type'=>2))?>">全部分享</a></li>   
   <li><a href="<?=self::_makeURL('index','index','index',array('type'=>1))?>">我好友及关注的分享</a></li>
   <li><a href="<?=self::_makeURL('index','index','index',array('type'=>3))?>">我的分享</a></li>
</ul>
<?if($this->ret['share']):?>

	<?foreach ($this->ret['share'] as $shlist):?>
      <div class="remenlist slw_d">
       <div class="remenlist_a slw_d">
         <div class="r_manhuapic"><a href="<?=self::_makeURL('index','index','view',array('cid'=>$shlist['id']))?>"><img onerror="defultpic(this)" src="<?=cartoon_util_upload::getUrl($shlist['ct_cover'],'small')?>" /></a></div>
         <dl id="r_pinlun" class="slw_f">
           <dt><a href="<?=self::_makeURL('index','index','view',array('cid'=>$shlist['id']))?>" title="<?=$shlist['ct_title']?>"><?=mb_strimwidth($shlist['ct_title'],0,40,'…','UTF-8')?></a></dt>
           <dd><?=mb_strimwidth($shlist['ct_simple_desc'],0,80,'…','UTF-8')?></dd>
         </dl>
         <div id="r_yuedu" class="slw_f">
         <?php $chapters = cartoon_util_interface::cacheGetChapter($shlist['id'],6);?>
         <?if($chapters):?>
         	<?foreach ($chapters as $cl):?>
         		<a <?if($readLog[$cl['id']] && in_array($cl['id'],$readLog[$cl['id']])):?> class="cartoon_online_now" <?endif;?> href="<?=self::_makeURL('index','index','view_photo',array('ctid'=>$shlist['id'],'cid'=>$cl['id']))?>" ><?=$cl['chapter_title']?></a>
         	<?endforeach;?>
         <?endif;?>
         <span><a href="<?=self::_makeURL('index','index','view_photo',array('ctid'=>$shlist['id']))?>"><img src="/images/yuedu.gif" width="60" height="15" /></a></span></div>
      	<div id="remenlist_b" class="slw_d">
  			<a class="he" href="<?=self::_makeURL('index','index','view',array('cid'=>$shlist['id']))?>">查看全部评论↓</a>	
         	<?php $ctid = $shlist['id'];?>
      		<?require('part_comm_list.phtml');?>
      	  </div>
        </div>
      </div>
      <?endforeach;?>

<?else:?>
<i:info type="friendly" xmlns:i="178">还没有共享</i:info>
<?endif;?>